#ifndef __MSGSEND__H__ 
#define __MSGSEND__H__

    #include "rasp_cmd.h"
    #include <sys/msg.h>

    #define MSG_SERVER  0
    #define MSG_CLIENT  1

    struct msg_t
    {
        long int msg_type;
        struct msg_content_t content;
    };

    class msg_quene_t
    {
    private:
        int cs = MSG_SERVER;
        int msg_id = -1;
    public:
        msg_quene_t(int _cs);
        ~msg_quene_t(void);

        int send(struct msg_content_t &_msg_content);
        int receive(msg_content_t &_content);
    };

#endif
